/*
 * --------------------------------------------------------------
 * Copyright ©  2015 Hangzhou DtDream Technologies Co.,Ltd.
 * --------------------------------------------------------------
 *      Product: 协同数治
 *  Module Name: design
 * Date Created: 2023/2/23
 *  Description: TODO
 * --------------------------------------------------------------
 * Modification History
 * DATE            NAME            Description
 * --------------------------------------------------------------
 * 2023/2/23       yewj            TODO
 * --------------------------------------------------------------
 */

package com.dtdream.pattern.command;

/**
 * TODO
 *
 * @Author: yewj
 **/
public class LightOnCommand implements Command{

    private LightReceive light;

    public LightOnCommand(LightReceive light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.on();
    }

    @Override
    public void undo() {
        light.off();
    }
}
